package com.bosssoft.ct.redis.demo1.lock;

/**
 * @author ChenTong
 * @version 1.0
 * @description 分布式锁接口
 * @date 2020/6/17 6:59
 * @modified
 **/
public interface DistributionLock {
    /**
     * 获取锁
     * @return
     */
    boolean lock(String key, long expireTime);

    /**
     * 释放锁
     * @return
     */
    boolean release(String key) ;
}
